#ifndef QUICKFINDSET_H
#define QUICKFINDSET_H
#include "common.h"
typedef struct {
    int n;
    Element *data;
    int *groupID;
}QuickFindSet;

QuickFindSet *creteQuickFindSet(int n);
void releaseQuickFindSet(QuickFindSet *setQF);
void initQuickFindSet(QuickFindSet *setQF,const Element *data,int n);

int isSameQF(QuickFindSet *setQF,Element a,Element b);
void unionQF(QuickFindSet *setQF,Element a,Element b);

#endif //QUICKFINDSET_H
